package com.autumn.chat.struct.gpt;

/**
 * ClassName: Choise
 * Description:
 * Author: Shen_Yue
 * Date: 2023/3/4 1:01
 * History:
 * <author>          <time>          <version>          <desc>
 * wangqiuyang    2023/3/4 1:01   @Version 1.0        描述
 */
public class Choice {

    private Message message;
    private String finishReason;
    private int index;

    public Choice() {
        super();
    }

    public Choice(Message message, String finishReason, int index) {
        this.message = message;
        this.finishReason = finishReason;
        this.index = index;
    }

    public Message getMessage() {
        return message;
    }

    public void setMessage(Message message) {
        this.message = message;
    }

    public String getFinishReason() {
        return finishReason;
    }

    public void setFinishReason(String finishReason) {
        this.finishReason = finishReason;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    @Override
    public String toString() {
        return "Choice{" +
                "message=" + message +
                ", finish_reason='" + finishReason + '\'' +
                ", index=" + index +
                '}';
    }
}
